Skip to content

fix(session): retry Codex server_is_overloaded stream errors#25728

Draft
ItsWendell wants to merge 1 commit intoanomalyco:devfrom
ItsWendell:fix/codex-overload-retry
Draft

fix(session): retry Codex server_is_overloaded stream errors#25728
ItsWendell wants to merge 1 commit intoanomalyco:devfrom
ItsWendell:fix/codex-overload-retry

Conversation

@ItsWendell
Copy link
Copy Markdown
Contributor

@ItsWendell ItsWendell commented May 4, 2026

Issue for this PR

Closes #25730

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Codex subscription streams can return transient overload errors as nested type: error events with error.code: server_is_overloaded and error.type: service_unavailable_error.

This PR routes that stream error through the existing retry path, and keeps the generic retry fallback aware of nested provider error codes/types.

How did you verify your code works?

  • bun test test/session/retry.test.ts
  • bun typecheck
  • push hook: bun turbo typecheck

Screenshots / recordings

Not applicable, no UI changes.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. contributor needs:issue labels May 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label May 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@ItsWendell ItsWendell changed the title fix: retry Codex overloaded stream errors fix(session): retry Codex server_is_overloaded stream errors May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Codex server_is_overloaded stream errors are not retried

1 participant